public class OperationDiv extends Operation {
    @Override
    public double getResult(double numberA, double numberB) throws Exception {
        if (numberB==0){
            System.out.println("输出不能为0");
            throw new Exception();
        }
        return numberA/numberB;
    }
}
